package com.example.AIstudy.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.AIstudy.DTO.LevelRecordDTO;
import com.example.AIstudy.domain.LevelRecord;
import com.example.AIstudy.exception.AIstudyException;
import org.apache.ibatis.annotations.*;

import java.util.Map;

public interface LevelRecordService extends IService<LevelRecord> {

    //新增一个学生的学习周记录
    void insertLevelRecord(LevelRecord levelRecord) throws AIstudyException;

    //分页获取学生的学习记录
    public IPage<LevelRecord> findRecords(Map<String,Object> condition, Integer pageNum, Integer pageSize);

    public LevelRecordDTO findRecordDetail(Integer stuID);
}
